/**
 * Author zdc
 * 程序主入口
 */
/*if(!window.opener){
	alert("请登录!");
	location.href="about:blank";
}*/
$(function() {
	Global.type= getUrlParameter("type");
	Global.id= getUrlParameter("id");
	Global.language = getUrlParameter("request-locale");
	initWidget();
});


function initWidget(){
    var loction  = dojo.query(".resultcontent")[0];
    require(["widgets/queryDetailWidget/queryDetailWidget"],function(QueryDetailWidget){
        var queryDetail = new QueryDetailWidget({type:Global.type,id:Global.id});
        queryDetail.startup();
        queryDetail.placeAt(loction);
    });
}


//esri.config.defaults.io.errorHandler=function(){console.log(arguments)}